<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Survey on Migrant Children</title>
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <link rel="shortcut icon" href="img/4043250_avatar_child_girl_kid_icon.ico" type="image/x-icon">
    <!-- Fonts -->
    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Inconsolata" />
    <link href="https://fonts.googleapis.com/css?family=Catamaran&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Mukta:300,400,700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Lora:400,400i,500,600,700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.min.css" />
    <style>
        body {
            font-family: 'Lora', serif;
            background-color: #f8f9fa;
            color: #343a40;
        }

        .navbar-brand img {
            height: 40px;
        }

        .section-title {
            margin-top: 40px;
            margin-bottom: 20px;
            text-align: center;
        }

        .card {
            margin-bottom: 20px;
        }

        .storytelling {
            margin-top: 40px;
        }

        .icon {
            font-size: 2rem;
            color: #007bff;
        }

        .image-placeholder {
            height: auto;
            background-color: #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .footer {
            /* background-color: #fff; */
            color: #343a40;
            padding: 20px;
            text-align: center;
        }

        footer {
            margin-top: 50px;
            padding: 20px 0;
            margin-left: 20%;
            margin-right: 20%;
            /* background-color: #f8f9fa; */
            color: #343a40;
            text-align: center;
        }

        .chart {
            margin-top: 20px;
            height: 300px;
        }

        .image-small {
            width: 100%;
            height: auto;
            object-fit: contain;
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .card-title {
                font-size: 1.25rem;
            }

            .card-text {
                font-size: 1rem;
            }
        }
    </style>
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-R84F1GN2FV"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());

        gtag('config', 'G-R84F1GN2FV');
    </script>
</head>

<body>

    <nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
        <a class="navbar-brand" href="index.html"><img src="img/4043250_avatar_child_girl_kid_icon.png" alt="Logo"></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav ml-auto">
                <li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
                <li class="nav-item"><a class="nav-link" href="perception.html">Public Perception</a></li>
                <li class="nav-item"><a class="nav-link" href="map.html">Map</a></li>
                <li class="nav-item"><a class="nav-link active" href="survey.html">Survey</a></li>
                <li class="nav-item"><a class="nav-link" href="pedagogy.html">Pedagogy</a></li>
                <li class="nav-item"><a class="nav-link" href="test.html">Test</a></li>
            </ul>
        </div>
    </nav>

    <div class="container">
        <!-- Introduction Section -->
        <section id="introduction" class="storytelling">
            <h1 class="section-title">Survey</h1>
            <p>This section presents the process, data, and results of our survey on migrant children. By understanding
                their living conditions and psychological adaptation patterns in new environments, we aim to offer a
                comprehensive insight into their lives and challenges.</p>
        </section>

        <!-- Survey Process Section -->
        <section id="survey-process" class="storytelling">
            <h2 class="section-title">Survey Process</h2>
            <div class="card">

                <div class="card-body">
                    <h5 class="card-title">Data Collection</h5>
                    <p class="card-text">We conducted a mixed-method research design combining quantitative and
                        qualitative methods. The subjects were 29 migrant children living in Beijing, originating from
                        various parts of China. Data were collected through online questionnaires covering aspects such
                        as hometown, duration of schooling in Beijing, and social media use. Additionally,
                        semi-structured interviews and social media behavior analysis were used to deeply explore
                        children's emotional attitudes and social habits.</p>
                </div>
            </div>
            <div class="card">

                <div class="card-body">
                    <h5 class="card-title">Participants</h5>
                    <p class="card-text">The study subjects were 29 migrant children living in Beijing who entered
                        private migrant schools primarily around the age of 11. These children come from diverse
                        geographical backgrounds, such as Loudi in Hunan and Qitaihe in Heilongjiang, providing rich
                        perspectives for understanding how they adapt to different cultural and social contexts.</p>
                </div>
            </div>
        </section>

        <!-- Survey Data Section -->
        <section id="survey-data" class="storytelling">
            <h2 class="section-title">Survey Data</h2>
            <div class="row">
                <div class="col-md-6">
                    <div class="card">
                        <div class="image-placeholder chart" id="chart1"></div>
                        <div class="card-body">
                            <h5 class="card-title">Social Media Usage</h5>
                            <p class="card-text">Out of 37 survey respondents, 24 are users of social media platforms
                                like Xiaohongshu, Douyin, and Kuaishou. While the majority use social media for
                                entertainment, a significant portion also use it for educational purposes, socializing,
                                and maintaining contact with their hometowns.</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="card">
                        <img src="img/family care.png" class="image-small" alt="Family Care Image">
                        <div class="card-body">
                            <h5 class="card-title">Family Care</h5>
                            <p class="card-text">Survey results indicate that 25 respondents believe the parental
                                accompaniment they receive is sufficient, with 11 considering it very sufficient and
                                only one respondent finding it insufficient. This challenges the common societal
                                assumption that migrant children lack family care.</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Survey Results Section -->
        <section id="survey-results" class="storytelling">
            <h2 class="section-title">Survey Results</h2>
            <div class="row">
                <div class="col-md-6">
                    <div class="card">
                        <div class="image-placeholder chart" id="chart2"></div>
                        <div class="card-body">
                            <h5 class="card-title">Emotional Expression</h5>
                            <p class="card-text">The survey results show that many respondents do more than just browse
                                content on social media platforms. They actively engage by leaving comments, responding
                                to others, and posting their own content. This interaction makes social media a vital
                                tool for personal expression and emotional sharing.</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="card">
                        <img src="img/social media .png" class="image-small" alt="Maintaining Connections Image">
                        <div class="card-body">
                            <h5 class="card-title">Maintaining Connections</h5>
                            <p class="card-text">Nearly half of the respondents use social media to maintain contact
                                with their hometowns by browsing information about them. This implies that for migrant
                                children, social media serves as an essential tool for connecting with their roots and
                                managing the emotional challenges of settling in new environments.</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Summary Section -->
        <section id="summary" class="storytelling">
            <h2 class="section-title">Summary</h2>
            <p>The survey results provide valuable insights into the lives of migrant children. Despite common
                misconceptions, these children often receive sufficient family care and use social media as a tool for
                maintaining connections with their hometowns and expressing themselves. Understanding these dynamics is
                crucial for developing effective support systems and policies to help them thrive in urban environments.
            </p>
        </section>
    </div>

    <!-- Footer -->
    <footer class="footer">
        <p>&copy; 2024 Astoria "Muhan" Wang. All rights reserved.</p>
        <p><strong>Acknowledgment: </strong>Most of the images used in this application have been sourced from the
            internet. We sincerely thank the online
            community for their contributions and support. Additionally, many photos have been taken from
            schools in Beijing
            that accept migrant children, collected during my time as a volunteer. Your cooperation and support
            are greatly
            appreciated.</p>
        <a href="https://www.bcis.cn/" target="_blank"><img width="180px" src="img/lecheng.png"
                style="max-width:20%;"></a>
    </footer>

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
    <script src="https://d3js.org/d3.v5.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.min.js"></script>
    <script>
        var chart1 = c3.generate({
            bindto: '#chart1',
            data: {
                columns: [
                    ['Entertainment', 10],
                    ['Education', 5],
                    ['Socializing', 7],
                    ['Maintaining Contact', 5]
                ],
                type: 'pie',
                colors: {
                    'Entertainment': '#007bff',
                    'Education': '#6610f2',
                    'Socializing': '#6f42c1',
                    'Maintaining Contact': '#e83e8c'
                },
                names: {
                    'Entertainment': 'Entertainment',
                    'Education': 'Education',
                    'Socializing': 'Socializing',
                    'Maintaining Contact': 'Maintaining Contact'
                }
            },
            pie: {
                label: {
                    format: function (value, ratio, id) {
                        return d3.format('')(value);
                    }
                }
            }
        });

        var chart2 = c3.generate({
            bindto: '#chart2',
            data: {
                columns: [
                    ['Comments', 12],
                    ['Responses', 8],
                    ['Posts', 6]
                ],
                type: 'bar',
                colors: {
                    'Comments': '#ff7f0e',
                    'Responses': '#1f77b4',
                    'Posts': '#2ca02c'
                },
                names: {
                    'Comments': 'Comments',
                    'Responses': 'Responses',
                    'Posts': 'Posts'
                }
            },
            bar: {
                width: {
                    ratio: 0.5
                }
            }
        });
    </script>
</body>

</html>